package com.shengqin.entity;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.shengqin.config.handlers.JsonTypeHandler;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName(value = "t_run_line",autoResultMap = true)
public class RunLine {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private Boolean enabled = true;
    private Integer schoolId;
    private BigDecimal qualifyingDistance;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField(value = "point_json", typeHandler = JsonTypeHandler.class)
    private JSONObject pointJson;
}
